import request from '@/utils/request'

const api_name='admin/vod/teacher'

export default{
    //讲师条件查询
    pageList(current,limit,searchObj){
        return request({
            //模板字符串
            url:`${api_name}/findQueryPage/${current}/${limit}`,
            method: 'post',
            data: searchObj 
        })
  },
  
  removeTeacherById(id){
      return request({
        url:`${api_name}/remove/${id}`,
        method: 'delete'
      })   
  },
  addTeacher(teacher){
          return request({
            url:`${api_name}/addTeacher`,
            method: 'post',
            data: teacher
    })
  },
  updateTeacher(teacher){
    return request({
      url:`${api_name}/updateTeacher`,
      method: 'post',
      data: teacher
})
},
  queryTeacherById(id){
    return request({
      url:`${api_name}/teacherId/${id}`,
      method: 'get'
  })
},
// 批量删除
    AllidList(idList){
  return request({
    url:`${api_name}/removeBatch`,
    method: 'delete',
    data:idList
})
},
  //所有讲师
  list() {
    return request({
      url: `${api_name}/selectAll`,
      method: `get`
    })
}
}
export function getList(params){
  return request({
    url: '/vue-admin-template-master',
    method: 'get',
    params 
})


}
